home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_10
/
9n10088a
< prev
next >
Wrap
Text File
|
1980-01-01
|
722b
|
43 lines
/*
listing 1 - common.h
*/
#define INT 0
#define FLOAT 1
#define STRING 2
#define NUMBER 0
#define PRICE 1
#define CODE 2
#define OFF 0
#define ON 1
#define SUCCEED 0
#define FAIL 1
#define FUNC int
#define BOOL int
struct record {
int id;
int number;
float price;
char code[10];
} ;
struct field_definition {
char keyword[10];
int type;
struct record *position_ptr;
};
FUNC lookup (int type, struct record *position_ptr,
struct record *tran_start,
int transaction_size, void *user_value);
FUNC type_check (struct field_definition *definitions,
struct record *position_ptr,
int transaction_size, char *user_keyword,
char *user_value);